//
//  StarChooseController.m
//  StartFortuneNew
//
//  Created by student on 14-10-16.
//  Copyright (c) 2014年 niit. All rights reserved.
//

#import "StarChooseController.h"
#import "CollectionView.h"

#import "MYViewController.h"
#import "NetRequestModel.h"
@interface StarChooseController ()<CollectionViewDeletege>

@end

@implementation StarChooseController

- (void)viewDidLoad
{
    [super viewDidLoad];
    CollectionView *collectionview = [[CollectionView alloc]init];
    collectionview.delegate = self;
    collectionview.frame = CGRectMake(0, 100, self.view.frame.size.width, self.view.frame.size.height - 50);
    [self.view addSubview:collectionview];
    
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)mystarBeclick:(CollectionView *)collectionview NetModle:(NetRequestModel *)netmodel
{
    
    NSLog(@"%d",netmodel.ID);
    
    NSNumber *n=[NSNumber numberWithInt:netmodel.ID];
    [[NSNotificationCenter defaultCenter]postNotificationName:kNotificationPassID object:n];
    //    FortuneController *vc = [[FortuneController alloc]init];
//    [self presentViewController:vc
//                       animated:YES completion:nil];

    MYViewController *vc=[[MYViewController alloc]init];
    [self.navigationController pushViewController:vc animated:YES];
    
    
}

@end
